<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Insert title here</title>
    <script type="text/javascript" src="__ROOT__/Public/js/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/Public/css/admin.css" />
<body>
    <div id="bds">
        <span style="width: 100%; height: 60px; display: block; line-height: 60px; text-align:center; font-size: 40px; font-weight: bold; font-family:微软雅黑; letter-spacing: 5px;background-color: #e1e1e1;">
            幻灯片管理
        </span>
        <div style="overflow: hidden;height: 30px;line-height: 30px;background: #fafafa;margin: 10px 0 10px 0">
            <form name="searchai" action="/yxadmin.php/Bbs/postlist" method="POST">
                <input type="text" name="key" style="height: 20px;" value="">
                <input type="submit" value="搜索" class="sub" style="width: 68px;height: 24px;border: 1px solid #999;background: #fff;cursor: pointer;">
            </form>
        </div>

        <div class="tit" style="border-top: 1px solid #e1e1e1;">
            <span class="one">序号</span>
            <span class="three" style="width: 341px;">图片</span>
            <span class="four">创建时间</span>
            <span class="four">最后修改时间</span>
            <span class="five" style="width: 89px;">排序</span>
            <span class="six" style="width: 90px;">状态</span>
            <span class="seven">管理</span>
        </div>
        <form action="__URL__/roleuser" method="post">
            <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><div class="tit" style="height: 100px;line-height: 100px;">
                    <span class="one" style="height: 100px;line-height: 100px;"><?php echo ($k); ?></span>
                    <span class="three"  style="width: 341px;height: 100px;line-height: 100px;"><?php if($vo["pic"] != null): ?><a href="<?php echo ($vo["url"]); ?>"><img src="/Public/Uploads/<?php echo ($vo["pic"]); ?>" width="230" /></a><?php endif; ?></span>
                    <span class="four" style="height: 100px;line-height: 100px;" ><?php echo ($vo["ftime"]); ?></span>
                    <span class="four" style="height: 100px;line-height: 100px;"><?php echo ($vo["xtime"]); ?></span>
                    <span class="five" style="height: 100px;line-height: 100px;width: 89px;"><?php echo ($vo["sort"]); ?></span>
                    <span class="six" style="height: 100px;line-height: 100px;width: 90px;"><?php if($vo['str'] == 1): ?>显示<?php else: ?>隐藏<?php endif; ?></span>
                    <span class="seven" style="height: 100px;line-height: 100px;">
                        <a href="__URL__/edit/id/<?php echo ($vo["id"]); ?>">编辑</a>
                        <a href="__URL__/del/id/<?php echo ($vo["id"]); ?>"  onclick="return a=confirm('确认删除');">删除</a>
                    </span>    
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
            <div class="button"><?php echo ($page); ?></div>        
        </form>
    </div>

</body>
</html>